package com.work.dto.main;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * 散货外捣搜索DTO
 *
 * @author ：dujianyu
 * @since ：Created in 2024/5/13 9:13
 */
@Data
public class BulkTallySearchDTO {

    /** ID */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "主键ID",notes = "")
    private Long  id ;

    /** 货运船ID */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "货运船ID",notes = "")
    private Long  transportShipId ;

    /** 理货日期 */
    @JsonSerialize(using = ToStringSerializer.class)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "理货日期",notes = "")
    private LocalDate tallyDate ;

    @ApiModelProperty(value = "理货搜索开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startTime;

    @ApiModelProperty(value = "理货搜索结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;

    /** 时间段（班组） */
    @ApiModelProperty(name = "时间段（班组）",notes = "")
    private String timeSpace ;

    /** 是否按账号筛选 */
    @ApiModelProperty(name = "是否按账号筛选",notes = "")
    private String personal ;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "区域ID",notes = "")
    private Long areaId ;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "货场ID",notes = "")
    private Long positionId ;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "队组ID",notes = "")
    private Long corpTeamId ;

    @ApiModelProperty(name = "机械种类",notes = "")
    private String machineKind ;

    @ApiModelProperty(name = "是否检算",notes = "")
    private String isCheck ;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "装卸公司",notes = "")
    private Long preCompany;


    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "装卸公司",notes = "")
    private Long company ;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "队",notes = "")
    private Long team ;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "组",notes = "")
    private Long groups ;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "作业过程",notes = "")
    private Long operationType ;

    @ApiModelProperty(name = "出入库",notes = "")
    private String tallyType ;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "理货员",notes = "")
    private Long  createUser ;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "保管员",notes = "")
    private Long  keeper ;

    @ApiModelProperty(name = "航陆运",notes = "")
    private String shipLand ;

    @ApiModelProperty(name = "舱别",notes = "")
    private String hold ;

    @ApiModelProperty(name = "安全生产",notes = "")
    private String isSafeProduction ;


}
